package com.atguigu.gmall.pay.service;

/**
 * 支付宝支付服务的接口类
 */
public interface AliPayService {

    /**
     * 支付宝下单
     * @param orderId
     * @return
     */
    public String aliPay(Long orderId);

    /**
     * 校验阿里支付的结果:主动查询
     * @param orderId
     * @return
     */
    public String checkAliPay(Long orderId);

    /**
     * 关闭订单
     * @param orderId
     * @return
     * @throws Exception
     */
    public String close(Long orderId) throws Exception;

    /**
     * 退款
     * @param orderId
     * @return
     * @throws Exception
     */
    public String refund(Long orderId) throws Exception;
}
